<template>
  <div class="btnSubmit">
    <button @click="loginHandle">
      <slot></slot>
    </button>
  </div>
</template>

<script>
export default {
  methods: {
    loginHandle() {
      // console.log('我是子组件按钮')
      this.$emit("handleLogin");
    },
  },
};
</script>

<style lang="less" scoped>
.btnSubmit {
  padding-top: 26/360 * 100vw;
  button {
    width: 100%;
    // height: 48/360*100vw;
    line-height: 48/360 * 100vw;
    font-size: 18px;
    background: #cc3300;
    color: white;
    border: none;
    outline: none;
    border-radius: 24/360 * 100vw;
  }
}
</style>
